#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
	int n;
	cin >> n;
	int sum_int = 0;
	double sum_double = 0.0;
	for (int i = 0;i < n;i++)
	{
		int x;
		cin >> x;
		sum_int += x;
	}
	cout << sum_int <<" " << fixed << setprecision(5) << sum_int * 1.0 / n;
	return 0;
}